﻿CREATE TRIGGER LoanExecutionAttachments_Tracking_Delete
ON [dbo].[LoanExecutionAttachments] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanExecutionAttachments_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanExecutionAttachments_Tracking s JOIN DELETED i
    ON s.LoanExecutionAttachmentID = i.LoanExecutionAttachmentID
END











